package com.braveman.im.ui.activity.message;


import android.widget.ExpandableListView;

import com.braveman.im.R;
import com.braveman.im.bean.GroupBean;
import com.braveman.im.ui.adapter.MyAdapter;
import com.ht.baselibs.ui.base.BaseActivity;

import java.util.List;


public class TextAc extends BaseActivity {

    private ExpandableListView mListView;
    private MyAdapter adapter;
    private List<GroupBean> list;

    @Override
    protected boolean isStaticPage() {
        return true;
    }

    @Override
    protected void initTitleBar() {

    }

    @Override
    protected int initContentView() {
        return R.layout.activity_text_ac;
    }

    @Override
    protected void initChildView() {

        mListView = (ExpandableListView) this.findViewById(R.id.my_listview);


    }

    @Override
    protected void initChildData() {
//        list = new ArrayList<GroupBean>();
//        {
//            List<ChildBean> list1 = new ArrayList<ChildBean>();
//            ChildBean cb1 = new ChildBean("11", "正气诚信平台", "诚信星级★★★★", "科技 农业 旅游");
//            ChildBean cb2 = new ChildBean("11", "正气诚信平台", "诚信星级★★★★", "科技 农业 旅游");
//            ChildBean cb3 = new ChildBean("11", "正气诚信平台", "诚信星级★★★★", "科技 农业 旅游");
//            ChildBean cb4 = new ChildBean("11", "正气诚信平台", "诚信星级★★★★", "科技 农业 旅游");
//            list1.add(cb1);
//            list1.add(cb2);
//            list1.add(cb3);
//            list1.add(cb4);
//            GroupBean gb1 = new GroupBean("家", list1);
//            list.add(gb1);
//        }
//
//        adapter = new MyAdapter(list, this);
//        mListView.setAdapter(adapter);
//        mListView.setGroupIndicator(null);
//        mListView.expandGroup(0);

    }

    @Override
    protected void setChildViewListener() {

    }
}